<?php

class Jd_pic_model extends MY_Model {

    public function __construct()
    {
        $this->modelename='Jd_pic_model';
        $this->tablename='pic';
        parent::__construct();

    }

    public function addpic($row){

      return     $this->add($this->tablename,$row);

    }

    public function addtext($row){
        return   $this->add('text',$row);

    }

    public function textupdate($id,$row){
        return  $this->update('text','id',$id,$row);
    }


    public function gettextbid($id){
        return    $result = $this->db->select("text")->from('text')->where("`id`='$id'")->get()->result_array();
    }





















}
